#ifndef QNBCONSTANT_H
#define QNBCONSTANT_H


#define HTTP_POTOCOL "http://"

#define HTTP_API_CONTROLLER "/netbar/public/index.php/admin/client/"

//#define HTTP_API_URL_DIR HTTP_POTOCOL HTTP_HOST HTTP_API_CONTROLLER


#define PRJ_NAME "NetBar"
#define ROOT_DIR "C:\\" PRJ_NAME

#define CONFIG_FILE_NAME "config.ini"
//#define CONFIG_FILE ROOT_DIR "\\" CONFIG_FILE_NAME

#define USER_DATA "userdata"
#define USER_DATA_DIR ROOT_DIR "\\" USER_DATA


#define AUTH_DATA "auth"
#define AUTH_DATA_DIR USER_DATA_DIR "\\" AUTH_DATA

#define TMP_DATA  "tmp"
#define TMP_DATA_DIR USER_DATA_DIR "\\" TMP_DATA

#define PHOTO_FILE_SUFFIX_NOT_DOT "jpg"
#define PHOTO_FILE_SUFFIX "."PHOTO_FILE_SUFFIX_NOT_DOT


/* 心跳频率 单位秒 */
#define HEART_INTERVAL (20)

/* 客户端更新配置参数频率 单位秒 */
#define UPDATE_CONFIG_INTERVAL (60)

/* 客户端登出后/锁住屏幕后， 删除登陆用户信息 单位秒
 * 10分钟后，删除信息
 *
 */
#define DELETE_USER_DATA_DELAY_TIME (10*60)


/*
 * 2分钟提交一次图片
 */
#define SUBMIT_PHOTO_INTERVAL   (2*60)

// 20秒比对一次
#define CHECK_PHOTO_INTERVAL    (20)

#define LOOP_CHECK_LOGIN_STATUS_INTERVAL  (1)

/*
 * 连续错误次数，则退出，锁住屏幕
 */
#define LOCKSCREEN_JUDGE_MAX_COUNT (3)

/*
 * 图片比对，大于本相识度值，认定同一个人。
 */
//modified by xuhongneng @20170822
#define PHOTO_SIMILAR_VALUE (30)
//modified by xuhongneng @20170822

/*
 * 登陆时，比对错误达到一定次数后，提示到柜台重新认证
 */
#define LOGIN_CHECK_PHOTO_ERROR_MAX_COUNT (5)

const wchar_t *const SVCHOST_NAME_FORK_W = L"Svchost.exe";
const char * const TEMP_FILE_NAME = "Temp.exe";
const char * const SVCHOST_NAME_FORK = "Svchost.exe";

#endif // QNBCONSTANT_H
